package com.whq.entity;

import java.util.List;

/**
 * Created by qpx on 2018/1/20.
 */
public class User {


    public User() {
    }

    public User(Address address) {
        this.address = address;
    }

    public User(Role role){
        this.role = role;
    }

    private String code;
    private List<User1> data;
    private String message;

    private Role role;


    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    private Address address;

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<User1> getData() {
        return data;
    }

    public void setData(List<User1> data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    public void  init(){
        System.out.println("------------");
    }


    public void destroyMethod(){
        System.out.println("------------");
    }
}
